package sfin.swt.util;

import java.io.Serializable;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

@SuppressWarnings("serial")
public class Main implements Serializable{
	
	public static void main(String[] args) {
		@SuppressWarnings("resource")
		ApplicationContext ctx = new ClassPathXmlApplicationContext("application-context.xml");
		InjectionUtil injectionUtil = (InjectionUtil) ctx.getBean("injectionUtil");
		ApplicationRunner runner = new ApplicationRunner();
		injectionUtil.inject(runner);
		new Thread(runner).run();
	}

}
